package com.skynet.app.sell.controller;

import com.skynet.app.sell.vo.ProductInfoVO;
import com.skynet.app.sell.vo.ProductVO;
import com.skynet.app.sell.vo.ResultVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;

@RestController
@RequestMapping("/buyer/product")
public class BuyerProductController {

    @GetMapping("/list")
    public ResultVO list(){
        ResultVO resultVo = new ResultVO();
        ProductVO productVO = new ProductVO();
        ProductInfoVO productInfoVO = new ProductInfoVO();
        productVO.setProductInfoVOList(Arrays.asList(productInfoVO));

        resultVo.setCode(0);
        resultVo.setMsg("成功");
        resultVo.setData(Arrays.asList(productVO));

        return resultVo;
    }

}
